<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"  isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改角色</title>
<style type="text/css">
.rolelist {
	float: left;
	overflow: hidden;
	height: 290px;
}

.rolelist_right {
	float: left;
	overflow: hidden;
	height: 290px;
}

.center {
	margin: 20px, 20px, 20px, 20px;
	float: left;
	overflow: hidden;
	height: 290px;
	width: 130px;
	text-align: center;
}

.role {
	margin-bottom: 10px;
	margin-top: 10px;
	overflow: hidden;
}
</style>



<script type="text/javascript">
	var __ajax_url = "<%=request.getContextPath()%>/acm/approle/getStructurePermission?roleId=${role.id}";
	var __permission_all_id = "appRoleModify_approle_permission";
	var __perission_self_id = "appRoleModify_approle_permission_sel";
	
	function onsubmits() {
		var primission_select = document
				.getElementById("appRoleModify_approle_permission_sel");

		for ( var i = 0; i < primission_select.length; i++) {
			primission_select.options[i].selected = true;
		}
		return true;
	}
</script>

</head>
<body>
<div class="youarehere">权限管理 &gt; <span>管理角色</span>&gt; <span>修改角色</span></div>
<chtml:command command="role"
	title="修改角色" onSubmit="onsubmits()" action="/acm/approle/modify">	
	<chtml:property index="-1" label="系统权限">
	<div class="role">
		<div class="rolelist"><SELECT tabindex="1"
			id="appRoleModify_approle_permission"
			NAME="appRoleModify_approle_permission" multiple="multiple" SIZE=12
			style="width: 200px; height: 290px;">
			
		</SELECT></div>
		<div class="center"><br>
		<br>
		<br>
		<br>
		<a href="#" onclick="javascript:window.appRoleCreate.addPermission();">添加</a><br>
		<br>
		<a href="#" onclick="javascript:window.appRoleCreate.removePermission();">移除</a></div>

		<div class="rolelist_right"><SELECT tabindex="1"
			id="appRoleModify_approle_permission_sel" NAME="permissionIds"
			multiple="multiple" SIZE=12 style="width: 200px; height: 290px;">

		</SELECT></div>
		</div>
	</chtml:property>
	<chtml:button destination="/acm/approle/modify" showText="修改"></chtml:button>
	</chtml:command>
	<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/acm/appRole.js"></script>
	
	<!--说明   -->	
<div class="sm_info">
	<p class="row_one">说明：</p>
	<p class="other"></p>
	<p class="other"></p>
</div>
</body>

</html>